package com.qiyu.tech.id.builder;

import com.qiyu.datasource.annotation.AppDataSource;
import com.qiyu.datasource.enums.DatasourceConfigEnum;
import com.qiyu.datasource.interceptor.QiyuInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;

/**
 * @Author idea
 * @Date created in 11:16 下午 2020/9/17
 */
@SpringBootApplication(scanBasePackages = "com.qiyu.*")
@Import(QiyuInterceptor.class)
@AppDataSource(datasourceType = {DatasourceConfigEnum.CLOUD_DB_COMMON},defaultType = DatasourceConfigEnum.CLOUD_DB_COMMON)
public class IdBuilderApplication {

    public static void main(String[] args) {
        SpringApplication.run(IdBuilderApplication.class,args);
        System.out.println("========== IdBuilderApplication started! =========");
    }
}
